﻿<vt:set var="filter1" value="$url.formid.0" format="formid={0}" />
<vt:function var="curform" method="GetData" data="viewFormParas" type="show" filter="$filter1"
    px="px" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <base href="{$basepath}" />
    <link id="ctl00_mycss" href="style.css" rel="stylesheet" type="text/css" />
   
 <link rel="stylesheet" type="text/css" href="/crm/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="/crm/themes/icon.css" />
    <script type="text/javascript" src="/crm/js/jquery-1.4.4.min.js"></script>

    <script src="/Crm/js/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function()
        {
            var selobj = null;
            var selobjcolor = null;
            $(".trnei,.lupai").each(function()
            {
                $(this).click(function()
                {
                    if (selobj != null)
                    {
                        selobj.css("background-color", selobjcolor);
                    }
                    selobjcolor = $(this).css("background-color");
                    $(this).css("background-color", "#D1F880");
                    selobj = $(this);
                });

            });
        });
    </script>

    <script src="/js/Color.js" type="text/javascript"></script>

    <script src="/xheditor/xheditor-1.1.10-zh-cn.min.js" type="text/javascript"></script>

    <script src="/plugins/filewatch/lhgdialog/lhgdialog.min.js" type="text/javascript"></script>

    <script type="text/javascript">


        $(document).ready(function()
        {
            $("#btnBrowser").dialog(
            {
                title: '浏览文件', id: 'test9', page: '/plugins/filewatch/filelist.aspx?root=~/upload&fromid=ctl00_cbody_file1&' + Math.random(), autoSize: false, width: 800, height: 500
            }
            );
        });
    </script>

    <script type="text/javascript">
        $(pageInit);
        function pageInit()
        {
            $('#ctl00_cbody_txtContent').xheditor({ remoteImgSaveUrl: '/xheditor/saveremoteimg.aspx', upLinkUrl: "/xheditor/upload.aspx", upLinkExt: "zip,rar,txt", upImgUrl: "/xheditor/upload.aspx", upImgExt: "jpg,jpeg,gif,png", upFlashUrl: "/xheditor/upload.aspx", upFlashExt: "swf", upMediaUrl: "/xheditor/upload.aspx", upMediaExt: "wmv,avi,wma,mp3,mid", shortcuts: { 'ctrl+enter': submitForm} });
        }

        function submitForm() { }

        $(document).ready(function()
        {
            $("#btnSubmit").click(function()
            {
                $("#frm1").form({
                    url: "/ashx/postop.ashx?ac=autofrm&formid={$url.formid.0}",
                    onSubmit: function()
                    {
                        return $(this).form('validate');
                        // do some check
                        // return false to prevent submit;
                    },
                    success: function(data)
                    {
                        alert("成功!");
                        location.href = location.href;
                    }
                });
            });
        });
    </script>

</head>
<body>
    <form id="frm1" method="post">
    <div style="padding: 0 0 0 2px;">
        <table class="tblist" style="width: 850px; text-align: left">
            <colgroup>
                <col align="right" style="width: 100px;" class="bg1" />
            </colgroup>
            <tr class="ptitle" align="center">
                <td colspan="4" align="center">
                 {$:curform.rows.0.fcname} 修改/编辑
                </td>
            </tr>         
            <vt:foreach from="$curform" item="item" index="i">
            <tr>
                <td style="width: 100px">
                    {$item.cname}:
                </td>
                <td colspan="3">
                    {$item.htmlstr}
                </td>
            </tr>
            </vt:foreach>
            <tr>
                <td>
                </td>
                <td colspan="3">
                    <input type="submit"  value="提交" id="btnSubmit" />
                    &nbsp;
                    <input type="reset" value="重置" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
